package com.bjpowerrnode.javase.array;
/*
二维数组的遍历
 */
public class ArrayTest11 {
    public static void main(String[] args) {
        String[][] array = {
                {"java","run","build"},
                {"张三","李四","王五"},
                {"porn","Xvideos"}};

        for (int i = 0; i < array.length; i++) {//外层循环三次
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + " ");
            }
            //换行符
            System.out.print("\n");
            //System.out.println();
            
        }
    }


}
